from pyramid.renderers import render_to_response, render
from fun.models import DBSession
from fun.models import MyModel

def my_view(request):
    dbsession = DBSession()
    root = dbsession.query(MyModel).filter(MyModel.name==u'root').first()
    return {'root':root, 'project':'fun'}

def highcharts(request):
    return render_to_response('templates/highcharts.pt', {}, request=request)

def mako_demo(request):
    return render_to_response('demo.mako', {'demo': 'Mako'}, request=request)
